from tkinter import *


x,y,coof=int(input()),int(input()),int(input())
coords=[0,0,10,0,10,10,20,10,20,0,30,0,30,20,0,20]


for i in range(0,len(coords)):
    if i%2!=0:
        coords[i]*=coof
        coords[i]+=x
    else:
        
        coords[i]*=coof
        coords[i]+=y

for i in coords:

    if i<0 or i>500:
        print("фигура выходит за рамки")
        break
else:
    
    root=Tk()


    root.geometry("500x500")
    cnvs=Canvas(width=500,height=500)
    cnvs.pack(anchor=CENTER)

    cnvs.create_polygon(coords)
        
    root.mainloop()
